/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Segments;

/**
 *
 * @author emmanuel
 */
public class ParkedObject {
   private String objectType;
   private int typeId;
   private String par1;
   private String par2;
   private String name;
   
    public ParkedObject(){
    //throw new UnsupportedOperationException("ParkedObject not implemented");
   }

    public void setAttribute(String attributeName, String attributeValue) {
          //<parkedObject objectType= "semaphore" typeId="1" par1="semaforointeligente" par2="other parameter"> Parked Object Name</parkedObject>
        if(attributeName.equals("objectType")){
            this.objectType = attributeValue;
        }else
        if(attributeName.equals("typeId")){
            this.typeId = Integer.parseInt(attributeValue);
        }else
            if(attributeName.equals("par1")){
                this.par1 = attributeValue;
            }else
                if(attributeName.equals("par2")){
                    this.par2 = attributeValue;
                }
        
        //throw new UnsupportedOperationException("Not yet implemented");
    }
    
}
